package com.clhbolg.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】业务对象 t_resource
 *
 * @author cailinhu
 * @date 2023-02-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ResourceBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 资源名
     */
    @NotBlank(message = "资源名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String resourceName;

    /**
     * 权限路径
     */
    @NotBlank(message = "权限路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 请求方式
     */
    @NotBlank(message = "请求方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String requestMethod;

    /**
     * 父模块id
     */
    @NotNull(message = "父模块id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 是否匿名访问 0否 1是
     */
    @NotNull(message = "是否匿名访问 0否 1是不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isAnonymous;


}
